let OpenAndClose = {};
// let FindImages       = require(AppScript.RootDirectory+"/App/Library/FindImages.js");
// let CheckInPager    = require(AppScript.RootDirectory+"/App/Script/CheckInPage.js");

OpenAndClose.open = function(){
    device.wakeUpIfNeeded;
    //打开APP
    app.launchApp(AppScript.Config.AppName);
};

/**
 * 执行程序的关闭操作
 * 一直后退，直到出现 “是”
 **/
OpenAndClose.close = function(){
    
};


/**
 * 检查 应用 是否已经退出
 **/
OpenAndClose.CheckIsClose = function(){
    // if(text(AppScript.Config.AppName).findOnce() != null){
    //     //没有出去
    //     return false;
    // }
    // return true
}

module.exports = OpenAndClose;